import {createRouter, createWebHistory} from "vue-router";


const routes = [
    {
        path: '/', //路径
        name: "Index", //路由名字
        component: () => import("@/views/index.vue")
    },
    {
        path: '/article/detail', //路径
        name: "articleDetail", //路由名字
        component: () => import("@/views/article/detail.vue")
    },
    {
        path: '/article/list', //路径
        name: "articleList", //路由名字
        component: () => import("@/views/article/list.vue")
    },


    {
        path: '/company/login', //用人单位登入
        name: "companyLogin", //路由名字
        component: () => import("@/views/company/login/index.vue")
    },

    {
        path: '/company/register/first', //用人单位注册页面1
        name: "companyRegisterFirst", //路由名字
        component: () => import("@/views/company/register/first.vue")
    },
    {
        path: '/company/register/second', //用人单位注册页面2
        name: "companyRegisterSecond", //路由名字
        component: () => import("@/views/company/register/second.vue")
    },

    {
        path: '/company/register/privacy', //用人单位注册时的服务条款
        name: "companyPrivacy", //路由名字
        component: () => import("@/views/company/privacy/index.vue")
    }


]

const router = createRouter({
    routes,
    history: createWebHistory(),
    // scrollBehavior: () => {
    //     return { top: 0 };
    // }
});


export default router;